package com.tianji.learning.service;

import com.tianji.learning.entity.mq.SignInMessage;
import com.tianji.learning.entity.po.PointsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.entity.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;

import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 服务类
 * </p>
 *
 * @author lemon
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    /**
     * 添加积分消息-根据积分类型添加积分
     *
     * @param message
     * @param pointsRecordType
     */
    void addPointsRecord(SignInMessage message, PointsRecordType pointsRecordType);

    /**
     * 查询今日获取积分情况
     *
     * @return
     */
    List<PointsStatisticsVO> queryMyPointsToday();
}
